package com.yunhai.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.yunhai.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import java.util.HashMap;
import java.math.BigDecimal;

/**
 * 投资者关系对象 t_investor_relation
 *
 * @author jxj
 * @date 2021-01-21
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_investor_relation")
public class InvestorRelation implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 编号
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 1-公司报告  2-分析师报告
     */
    @Excel(name = "1-公司报告  2-分析师报告")
    private Integer type;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String reportTitle;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long sortNum;

    /**
     * 标题
     */
    @Excel(name = "副标题")
    private String subTitle;

    /**
     * 文件地址
     */
    @Excel(name = "文件地址")
    private String reportUrl;

    /** 发布时间 */
    @Excel(name = "发布时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date pushTime;

    /**
     * $column.columnComment
     */
    private Date createTime;

    /**
     * $column.columnComment
     */
    private Date updateTime;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
